<?php
/**
 * Created by IntelliJ IDEA.
 * User: XD
 * Date: 2017/8/24
 * Time: 10:09
 */

class MysqlMode
{
    private $servername = "127.0.0.1";//"27.10.15.148";
    private $username = "root";
    private $password = "";
    private $db="acquiescenceDB";
    private $port = 3306;
    private $socket = null;
    private $options = array();
    private $optiomscopy = array(
        PDO::ATTR_PERSISTENT => true                  // 默认这个不是长连接，如果需要数据库长连接，需要最后加一个参数
    );

    /**
     * @return string
     */
    public function getServername()
    {
        return $this->servername;
    }

    /**
     * @param string $servername
     */
    public function setServername($servername)
    {
        $this->servername = $servername;
    }

    /**
     * @return string
     */
    public function getUsername()
    {
        return $this->username;
    }

    /**
     * @param string $username
     */
    public function setUsername($username)
    {
        $this->username = $username;
    }

    /**
     * @return string
     */
    public function getPassword()
    {
        return $this->password;
    }

    /**
     * @param string $password
     */
    public function setPassword($password)
    {
        $this->password = $password;
    }

    /**
     * @return string
     */
    public function getDb()
    {
        return $this->db;
    }

    /**
     * @param string $db
     */
    public function setDb($db)
    {
        $this->db = $db;
    }

    /**
     * @return int
     */
    public function getPort()
    {
        return $this->port;
    }

    /**
     * @param int $port
     */
    public function setPort($port)
    {
        $this->port = $port;
    }

    /**
     * @return null
     */
    public function getSocket()
    {
        return $this->socket;
    }

    /**
     * @param null $socket
     */
    public function setSocket($socket)
    {
        $this->socket = $socket;
    }

    /**
     * @return array
     */
    public function getOptions()
    {
        return $this->options;
    }

    /**
     * @param array $options
     */
    public function setOptions($options)
    {
        $this->options = $options;
    }




}

?>